{include file="common/_meta" /}

<title>基本设置</title>
</head>

<body>
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i> 首页
		<span class="c-gray en">&gt;</span>
		系统管理
		<span class="c-gray en">&gt;</span>
		基本设置
		<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);"
		 title="刷新">
			<i class="Hui-iconfont">&#xe68f;</i>
		</a>
	</nav>
	<div class="page-container">
		<form class="form form-horizontal" id="form-article-add">
			<div id="tab-system" class="HuiTab">
				<div class="tabBar cl">
					<span>基本设置</span>
					<!-- <span>现金设置</span> -->
				</div>
				<div class="tabCon">
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-2">
							<span class="c-red">*</span>网站状态：</label>
						<div class="formControls col-xs-8 col-sm-9 skin-minimal">
							<div class="radio-box">
								<input name="WEB_STATUS" type="radio" value="1" id="">
								<label for="sex-1">在线</label>
							</div>
							<div class="radio-box">
								<input type="radio" value="0" id="" name="WEB_STATUS">
								<label for="sex-2" class="c-red">关闭</label>
							</div>
						</div>
					</div>
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-2">
							<span class="c-red">*</span>
							网站名称：</label>
						<div class="formControls col-xs-3 col-sm-6">
							<input type="text" name="WEB_TITLE" id="website-title" placeholder="" value="{:config('WEB_TITLE')}" class="input-text">
						</div>
					</div>
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-2">
							<span class="c-red">*</span>
							关键词：</label>
						<div class="formControls col-xs-3 col-sm-6">
							<input type="text" name="WEB_KEYS" id="website-Keywords" placeholder="5个左右,8汉字以内,用英文,隔开" value="{:config('WEB_KEYS')}" class="input-text">
						</div>
					</div>
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-2">
							<span class="c-red">*</span>
							描述：</label>
						<div class="formControls col-xs-3 col-sm-6">
							<input type="text" name="WEB_DETAIL" id="website-description" placeholder="空制在80个汉字，160个字符以内" value="{:config('WEB_DETAIL')}"
							 class="input-text">
						</div>
					</div>
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-2">
							<span class="c-red">*</span>
							底部版权信息：</label>
						<div class="formControls col-xs-3 col-sm-6">
							<input type="text" name="WEB_BQ" id="website-copyright" placeholder="&copy; 2018 www.xxx.com" value="{:config('WEB_BQ')}" class="input-text">
						</div>
					</div>
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-2">备案号：</label>
						<div class="formControls col-xs-3 col-sm-6">
							<input type="text" name="WEB_BA" id="website-icp" placeholder="京ICP备00000000号" value="{:config('WEB_BA')}" class="input-text">
						</div>
					</div>
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-2">允许访问后台的IP列表：</label>
						<div class="formControls col-xs-3 col-sm-6">
							<textarea class="textarea" name="" id="">{:config('ALLOW_IP')}</textarea>
						</div>
					</div>
				</div>
				<div class="tabCon">
					
				</div>
			</div>
			<div class="row cl">
				<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
					<button onClick="return saveConfig();" class="btn btn-primary radius" type="submit">
						<i class="Hui-iconfont">&#xe632;</i> 保存</button>
					<button class="btn btn-default radius rst hidden" type="reset">&nbsp;&nbsp;重置&nbsp;&nbsp;</button>
				</div>
			</div>
		</form>
	</div>

	{include file="common/_footer" /}

	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript">
		$('.form input[name="WEB_STATUS"][value=' + "{:config('WEB_STATUS')}" + ']').attr("checked", true);
		$(function () {
			$('.skin-minimal input').iCheck({
				checkboxClass: 'icheckbox-blue',
				radioClass: 'iradio-blue',
				increaseArea: '20%'
			});
			$("#tab-system").Huitab({
				index: 0
			});
		});
		// /setting/saveinfo
		function saveConfig() {
			$.post("{:url('Setting/index')}", $('.form').serialize()).success(function (data) {
				layer.msg(data.msg);
				if (!data.code) {
					$('.rst').click();
				}
			});
			return false;
		}
	</script>
	<!--/请在上方写此页面业务相关的脚本-->
</body>

</html>